<?php
/**
 * 固定错误响应类
 */
namespace App\Exceptions;

class ErrorResponse
{
    /**
     * 非法参数跑出异常
     * @param string $message
     * @param int $code
     * @throws BackendException
     */
    static public function illegalParam($message = '参数非法', $code = ErrorCode::ERROR_PARAM)
    {
        throw new BackendException($message, $code);
    }
}
